<!--  -->
<template>

  <div>
    
    <el-dialog title="收货地址" :visible.sync="closeDialogFormVisible.dialogFormVisible"><!--如果getters中导出的方法时dialogFormVisible不能直接用（dialogFormVisible=dialogFormVisible//相当于赋值了地址已经改变）
    不能直接导出需要少导一层例如closeDialogFormVisible.dialogFormVisible(所有都最好这样，会避免很多问题)-->
  <el-form :model="faqDetail">
    <el-form-item label="问题编号" :label-width="formLabelWidth">
      <el-input v-model="faqDetail.id" autocomplete="off" disabled></el-input>
    </el-form-item>
    <el-form-item label="问题标题" :label-width="formLabelWidth">
      <el-input v-model="faqDetail.title" autocomplete="off" disabled></el-input>
    </el-form-item>
    <el-form-item label="发布者" :label-width="formLabelWidth">
      <el-input v-model="faqDetail.publisher" autocomplete="off" disabled></el-input>
    </el-form-item>
    <el-form-item label="阅读量" :label-width="formLabelWidth">
      <el-input v-model="faqDetail.readNum" autocomplete="off" disabled></el-input>
    </el-form-item>
    <el-form-item label="回复量" :label-width="formLabelWidth">
      <el-input v-model="faqDetail.responseNum" autocomplete="off" disabled></el-input>
    </el-form-item>
    <el-form-item label="日期" :label-width="formLabelWidth">
      <el-input v-model="faqDetail.publishDate" autocomplete="off" disabled></el-input>
    </el-form-item>
  </el-form>
  <div slot="footer" class="dialog-footer">
    <el-button @click="ACloseFaqModalBox">取 消</el-button>
    <el-button type="primary" @click="closeAddAssignment()">确定</el-button>
  </div>
</el-dialog>
  </div>
</template>
<script >

import { mapGetters,mapActions} from 'vuex';
export default {
    name:'FaqModalBox',
    data() {
      return{
        //  dialogFormVisible: false,
        newFaqDetail:[],//如果有修改则是新的数据
        formLabelWidth: '120px',
        
      }
    },
    computed:{
        ...mapGetters(['closeDialogFormVisible','faqData','faqDetail'])
    },
    props:[],
    components: {},
    created() {
    },
    mounted() {
    },
    methods:{
      ...mapActions(['ACloseFaqModalBox']),
     closeAddAssignment(){
      this.newFaqDetail=this.faqDetail
      this.ACloseFaqModalBox(this.newFaqDetail);
     }
    }
  };
</script>
<style lang='scss'>
</style>